package com.xdkj.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "PageDispathcerServlet", urlPatterns = "/pageDispatcher")
public class PageDispathcerServlet extends BaseServlet {

    public String toIndex(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        return "/index.jsp";
    }

    public String toWelcome(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        return "/welcome.jsp";
    }

    public String toEmployeeList(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        return "/employee-list.jsp";
    }
}
